package com.amadeus.commons.log.dao;

public abstract class DAOFactory {

	public static final int MONGO = 1;
	public static final int MYSQL = 2;

	public abstract ExceptionInstanceDAO getExceptionInstanceDAO();

	public abstract ErrorInstanceDAO getErrorInstanceDAO();

	public static DAOFactory getDAOFactory(int whichFactory) {

		switch (whichFactory) {
		case MONGO:
			return new MongoDAOFactory();
		case MYSQL:
			return new MysqlDAOFactory();
		default:
			return null;
		}
		
	}

}
